package com.best.bestadmin;

import com.best.bestadmin.mapper.AdminUserMapper;
import com.best.bestadmin.pojo.AdminUser;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author yangruyi
 * @date 2021/3/18
 */
@SpringBootTest
public class testAdmin {
    @Autowired
    private AdminUserMapper userMapper;
    @Test
    public void test(){
        AdminUser adminUser = new AdminUser();
        adminUser.setUsername("admin");
        adminUser.setPassword("admin");
        userMapper.insert(adminUser);
    }
}
